package com.moodair.pip.plugin;

import com.moodair.pip.core.ContextHandler;
import com.moodair.pip.core.InstanceBuildContext;
import com.moodair.pip.core.annotation.PluginComponent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author MoodAir
 */
@PluginComponent("three")
public class Three implements ContextHandler<InstanceBuildContext> {
    
    private final Logger logger = LoggerFactory.getLogger(this.getClass());
    
    @Override
    public boolean handle(InstanceBuildContext context) {
        logger.info("--第三个任务--");
        logger.info("--更新modelId为3--");
        context.setModelId(3L);
        return true;
    }
}